﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace kehuguanli
{
    public partial class Menu : System.Web.UI.Page
    {
        protected string ManageMenu = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            Common.CheckMes.CheckState
              ("User_ID", "Index.aspx", "用户登录信息丢失，请重新登录...");
            //解密用户权限字符串
            string PowerMes = Common.EncryptString.DeMyEnncrypt
                (Common.GetMes.GetCookies("Power_Mes"), 6);
            //判断用户是否属于管理员角色
            if (PowerMes.IndexOf("3_3") > 0)
            {
                //构建显示菜单的字符串
                ManageMenu += "<li><a href=\"ServiceInfo.aspx\" target=\"main\">人员信息</a></li>";
                ManageMenu += "<li><a href=\"UserPowerManage.aspx\" target=\"main\">权限管理</a></li>";
                ManageMenu += "<li><a href=\"Data_Together.aspx\" target=\"main\">数据管理</a></li>";
            }
        }
    }
}